package com.narunas.view {
	
	
	import com.narunas.ApplicationFacade;
	
	import flash.display.Sprite;
	
	import org.puremvc.as3.interfaces.IMediator;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.mediator.Mediator;

	public class HomeMediator extends Mediator implements IMediator {
		
		public static const NAME:String = "HomeMediator";
		
		public function HomeMediator(name:String = null, viewComponent:Object = null) {
			super(NAME, viewComponent);
		}
		
		override public function listNotificationInterests():Array{
			return [
					ApplicationFacade.NAV_CHANGE,
					ApplicationFacade.INIT_HOME_PAGE
					];
		}
		
		override public function handleNotification(notification:INotification):void{
			
			super.handleNotification(notification);
	
			switch(notification.getName()) {
					
				case ApplicationFacade.NAV_CHANGE:
				break;
				case ApplicationFacade.INIT_HOME_PAGE:
				break;
					
			};
			
		}
		
		private function get base():Sprite {
			return Main(app).page_base;
		}
		
		private function get app():Main {
			return viewComponent as Main;
		}
		
	}
	
}
